package com.sita.tboard.launcher;

/**
 * Created by mark on 2015/2/26.
 */

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.sita.bike.R;
import com.sita.bike.ui.activity.LoginActivity;
import com.sita.bike.utils.SessionUtils;
import com.sita.friend.ui.activity.MainActivity;

public class LaunchActivity extends AppCompatActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_launch);

        if (SessionUtils.isLoggedIn(null)) {
            Intent intent = new Intent(this, MainActivity.class);
            startActivity(intent);

        } else {
            Intent intent = new Intent(this, LoginActivity.class);
            startActivity(intent);
        }
        finish();
    }

}
